Determining if Bytes Are Available Open Transport provides the function OTCountDataBytes to determine whether bytes are available to be read from an endpoint (without actually reading them).
OTCountDataBytes